import mujoco
import mujoco.viewer as viewer
import time

model = mujoco.MjModel.from_xml_path("MJCF/scene_flat.xml")
data = mujoco.MjData(model)
viewer = viewer.launch_passive(model, data)
viewer.opt.flags[mujoco.mjtVisFlag.mjVIS_RANGEFINDER] = False

while viewer.is_running():
    mujoco.mj_step(model, data)
    viewer.sync()
    time.sleep(0.001)